home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / utility / horst_2.zip / KPUSH.DOC < prev    next >
Text File  |  1995-12-18  |  2KB  |  72 lines

  1. ------------------------------------------------------------------------
  2. KPUSH     Keyboard buffer utility       Ver 1.5 (c) 1995 Horst Schaeffer
  3. ------------------------------------------------------------------------
  4.  
  5. KPUSH.COM stuffs keys into the keyboard buffer. This can be used to
  6. pass a number of keystrokes to the following program in a batch file.
  7. Examples:
  8.  
  9.         KPUSH "password" CR
  10.         KPUSH /59 ESC "W" 17
  11.               (F1)        (Ctrl-Q)
  12.  
  13. Keys may be specified as folows:
  14.  
  15.         "A"         ASCII character
  16.         "string"    ASCII string
  17.         17          decimal ASCII code (17=Ctrl-Q)
  18.         /59         non-ASCII keys with a slash (/59=F1)
  19.         43/78       ASCII with SCAN code (see test mode)
  20.         CR          (= 13/28)
  21.         ESC         (= 27/1)
  22.  
  23. KPUSH has a built-in test mode to report the codes of any key you press.
  24. For this mode run KPUSH without any parameters.
  25.  
  26. Some programs may handle ASCII keys differently depending on the SCAN
  27. code that is always supplied by BIOS. For example:
  28.  
  29.         43/27      is the white "+" key
  30.         43/78      is the grey "+" key (in the numeric key pad)
  31.  
  32. Scan code will be ZERO if not given (for characters, strings).
  33.  
  34.  
  35. OPTIONS (these options must be specified before any keys)
  36.  
  37. /F  FLUSH buffer
  38.     the keyboard buffer will be flushed before the given keys are
  39.     stored. Examples:
  40.  
  41.         KPUSH /F "XY",CR
  42.         KPUSH /F                (flush only)
  43.  
  44. /E  EXTEND buffer
  45.     extended buffer for 127 keystrokes is supplied at $200 in the
  46.     BIOS segment. This area is reserved, but apparently not used by DOS
  47.     or BIOS. No guaranty. Example:
  48.  
  49.         KPUSH /E "lots of keys to stuff into buffer",CR
  50.  
  51. /R  RETURN to normal buffer size (15 keystrokes)
  52.  
  53.         KPUSH /R
  54.  
  55. /?  help info
  56.  
  57.  
  58. Errorlevels: 0  ok
  59.              1  invalid specifications
  60.              2  buffer full
  61.  
  62. Important:
  63.  
  64. KPUSH will only work if the following programm does NOT ....
  65.    ... do a key buffer flush
  66.    ... check for Shift/Ctrl/Alt key status
  67.    ... check the keyboard interrupt directly (as some TSR's do)
  68.  
  69. KPUSH requires an AT style keybord with BIOS support.
  70.  
  71. = 21 MAY 1995
  72.